package com.sunrise.generico.entidade;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;

import com.sunrise.generico.entidade.iface.EntidadeNegocio;

@Entity
@Table(name = "estoque_ajustado")
public class EstoqueAjustado implements EntidadeNegocio {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8736099503634632309L;

	@Id
	@SequenceGenerator(name="pk_sequence",sequenceName="estoque_ajustado_id_seq", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="pk_sequence")
	@javax.persistence.Column
	@Getter @Setter
	private Long id;
	
	@Enumerated
	@Getter @Setter
	private Estoque estoque;
	
	@Column(name = "valorAnterior")
	@Getter @Setter
	private BigDecimal valorAnterior;
	
	@Column(name = "valorPosterior")
	@Getter @Setter
	private BigDecimal valorPosterior;
	
	@ManyToOne
	@Getter @Setter
	private AjusteEstoque ajusteEstoque;
	
	
}
